package com.example.annotation;

import com.example.config.ShardRabbitBootstrapConfiguration;
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.annotation.Order;
import org.springframework.core.type.AnnotationMetadata;

@Order
public class ShardRabbitListenerConfigurationSelector implements DeferredImportSelector {
    public ShardRabbitListenerConfigurationSelector() {
    }

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{ShardRabbitBootstrapConfiguration.class.getName()};
    }
}